package top.yeyusmile.quartz;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 测试任务
 *
 * @author 夜雨
 * @Web www.yeyusmile.top
 * @date 2022/3/17 9:01
 */

@Component
@Slf4j
public class TestJob {

    @Scheduled(cron = "0 * * * * ?")
    public void executeJob() {
        log.info(new Date() + "：TestJob is running");
    }
}
